package com.df.ez_game.server.logic.status_sync.controllers.entity;

/**
 * 移动响应类 - 服务器返回的移动确认
 */
public class MoveResp {
    private long id;           // 玩家ID
    private float x;           // 服务器确认的X坐标
    private float y;           // 服务器确认的Y坐标
    private long serverFrame;  // 服务器帧号
    private long clientFrame;  // 对应的客户端帧号
    private long timestamp;    // 服务器时间戳
    
    // Getters and Setters
    public long getId() {
        return id;
    }
    
    public void setId(long id) {
        this.id = id;
    }
    
    public float getX() {
        return x;
    }
    
    public void setX(float x) {
        this.x = x;
    }
    
    public float getY() {
        return y;
    }
    
    public void setY(float y) {
        this.y = y;
    }
    
    public long getServerFrame() {
        return serverFrame;
    }
    
    public void setServerFrame(long serverFrame) {
        this.serverFrame = serverFrame;
    }
    
    public long getClientFrame() {
        return clientFrame;
    }
    
    public void setClientFrame(long clientFrame) {
        this.clientFrame = clientFrame;
    }
    
    public long getTimestamp() {
        return timestamp;
    }
    
    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
    
    @Override
    public String toString() {
        return "MoveResp{" +
                "id=" + id +
                ", x=" + x +
                ", y=" + y +
                ", serverFrame=" + serverFrame +
                ", clientFrame=" + clientFrame +
                "}";
    }
}
